package service;

import java.util.HashMap;
import java.util.Map;

import bean.Admin;
import bean.User;
import mapper.AdminMapper;
import mapper.Mapper;

public class LoginService extends Mapper<AdminMapper>{
	// 登录检查
	public Admin loginCheck(String username, String password) {
		Map<String, Object> map = new HashMap<>();
		map.put("username", username);
		map.put("password", password);
		return getMapper().findByUsernameAndPassword(map);
	}
}